/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const SettingRouterMap = {
  id: 88,
  path: '/setting',
  component: Layout,
  name: '系统设置',
  redirect: '/setting/department',
  meta: {title: '系统设置', icon: 'setting', power: 'setting'},
  showMode: 'DEFAULT',
  children: [
    {
      id: 108,
      path: 'department',
      name: '部门设置',
      component: resolve => require(['@/views/setting/department'], resolve),
      meta: {title: '部门设置', icon: 'department', power: 'setting.department'}
    }, {
      id: 34,
      path: 'level',
      name: '等级设置',
      component: resolve => require(['@/views/setting/level'], resolve),
      meta: {title: '等级设置', icon: 'steam', power: 'setting.level'}
    }, {
      id: 90,
      path: 'commission',
      name: '提成设置',
      component: resolve => require(['@/views/setting/commission'], resolve),
      meta: {title: '提成设置', icon: 'commission2', power: 'setting.commission'}
    }, {
      id: 38,
      path: 'source',
      name: '来源设置',
      component: resolve => require(['@/views/setting/source'], resolve),
      meta: {title: '来源设置', icon: 'source', power: 'setting.source'}
    }, {
      id: 0,
      path: 'project',
      name: '项目设置',
      component: resolve => require(['@/views/setting/project'], resolve),
      meta: {title: '项目设置', icon: 'project', power: 'setting.project'}
    }, {
      id: 99,
      path: 'site',
      name: '站点设置',
      component: resolve => require(['@/views/setting/site'], resolve),
      meta: {title: '站点设置', icon: 'site', power: 'setting.site'}
    }, {
      id: 89,
      path: 'siteInfo',
      name: '站点信息',
      component: resolve => require(['@/views/setting/siteInfo'], resolve),
      meta: {title: '站点信息', icon: 'siteInfo', power: 'setting.siteInfo'}
    }, {
      id: 113,
      path: 'CRM-version',
      name: 'CRM版本',
      component: resolve => require(['@/views/setting/version'], resolve),
      meta: {title: 'CRM版本', icon: 'version', power: 'setting.CRM-version'}
    }
  ]
}

export default SettingRouterMap;
